

SET(VERSION_MAJOR 0)
SET(VERSION_MINOR 1)
SET(VERSION_PATCH 0)
SET(VERSION_SUFFIX -dev)

SET(MODULE_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SUFFIX})
SET(MODULE_NAME ActiveObject)
SET (ACTIVEOBJECTLIB_NAME ${MODULE_NAME}-${MODULE_VERSION})

SET (ACTIVEOBJECT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})

MESSAGE("-- ${MODULE_NAME} version ${MODULE_VERSION}" )
message("-- Working Directory ${ACTIVEOBJECT_SOURCE_DIR}")
# -----------------------------
# sources
# -----------------------------


SET	( SOURCE_DIR 
	    #${ACTIVEOBJECT_SOURCE_DIR}/Active.cpp
	    #${ACTIVEOBJECT_SOURCE_DIR}/ConcurrentQueue.cpp 
	    #${ACTIVEOBJECT_SOURCE_DIR}/IGetterMessage.cpp
	    #${ACTIVEOBJECT_SOURCE_DIR}/main.cpp
	)

SET(LIBSRC 

  ${ACTIVEOBJECT_SOURCE_DIR}/Active.cpp
  ${ACTIVEOBJECT_SOURCE_DIR}/ConcurrentQueue.cpp 
  ${ACTIVEOBJECT_SOURCE_DIR}/IGetterMessage.cpp

 )

INCLUDE_DIRECTORIES (
	    ${ACTIVEOBJECT_SOURCE_DIR}
		    ) 

#INSTALL(FILES libActiveObj.so DESTINATION lib)
#INSTALL(FILES Test DESTINATION bin)

ADD_LIBRARY(${ACTIVEOBJECTLIB_NAME} SHARED ${LIBSRC})

ADD_SUBDIRECTORY(Test)

#ADD_EXECUTABLE(Test ${SOURCE_DIR})
#TARGET_LINK_LIBRARIES(Test boost_thread)
